package jmine.tec.script.persistent.diagnostician;

import java.util.ArrayList;
import java.util.List;

import jmine.tec.script.persistent.context.impl.AbstractScriptExecutionContext;

/**
 * Contexto de execucao de script que executa um diagnosticador.
 * 
 * @author Marcio Ribeiro (mmr)
 * @created Dec 17, 2010
 */
public class ScriptDiagnosticianContext extends AbstractScriptExecutionContext<List<String>> {

    private static final String DESCRIPTIONS = "descriptions";

    private final List<String> descriptions = new ArrayList<String>();

    /**
     * Coloca lista de descricoes no contexto.
     */
    @Override
    public void beforeExecution() {
        this.getParameters().putParameter(DESCRIPTIONS, descriptions);
    }

    /**
     * @return lista de descricoes para colocar no DiagnosticianBean de resultado da execucao do Diagnosticador.
     */
    public List<String> getResult() {
        return descriptions;
    }

    /**
     * @return null.
     */
    public String getTracer() {
        return null;
    }

}
